package main

import (
	"flag"
	"objectUploader/uploader"
	"objectUploader/utils"
)

func main() {
	settingPath := flag.String("setting-path", utils.GetExecFilePath()+"/setting/setting.json", "setting file path")
	uploadMode := flag.String("upload-mode", "alioss", "upload mode")
	flag.Parse()
	path := flag.Args()

	uploader.DoUploadBase(path, *uploadMode, *settingPath)
}
